# include directories
INCLUDES = -I./lib

# C++ compiler flags (-g -O2 -Wall)
CCFLAGS = -g -pthread

# compiler
CCC = g++

# library paths
LIBS = -lm -ldlm -pthread 

# compile flags
LDFLAGS = -g


main: dlmlib main.o
	g++ -o main main.o libdlm.a -pthread
#	g++ -o main main.o klient.o libdlm.a -pthread
	

dlmlib:
	(cd lib;$(MAKE))

#klient.o:
#	(cd klient;$(MAKE))
	
.cpp.o:
	$(CCC) $(INCLUDES) $(CCFLAGS) -c $< -o $@

clean:
	(cd lib;$(MAKE) clean)
	rm main *.o
	(cd klient;$(MAKE) clean)
